using UnityEngine;
using System.Collections;

public class UIEffect : MonoBehaviour
{ 
	public void Play()
	{
		UITweener[] tweeners = GetComponents<UITweener>();
		foreach(UITweener tween in tweeners)
		{
			tween.ResetToBeginning();
			tween.Play();
		}
	}

	public void ToDisable()
	{
		gameObject.SetActive(false);
	}

	public void ToRemove()
	{
		GameObject.Destroy(gameObject);
	}
}

